package model

import (
	"gorm.io/gorm"
	"time"
)

type Models struct {
	ID        uint           `gorm:"primaryKey;comment:主键id"`
	CreatedAt time.Time      `gorm:"comment:创建时间"`
	UpdatedAt time.Time      `gorm:"comment:更新时间"`
	DeletedAt gorm.DeletedAt `gorm:"comment:删除时间"`
}

type PageInfo struct {
	Page     int    `form:"page"`
	PageSize int    `form:"pageSize"`
	Order    string `form:"order"`
	Search   string `form:"search"`
}
type KVModel struct {
	Name  uint   `json:"key"`
	Value string `json:"value"`
}
